﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RolListForm.aspx.cs" Inherits="UILGestion.Seguridad.RolListForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../Control/menuCtrl.ascx" tagname="menuCtrl" tagprefix="uc2" %>
<%@ Register src="../Control/RoleListGridGrid.ascx" tagname="RoleListGridGrid" tagprefix="uc3" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

</head>
<link href="../css/main.css" rel="stylesheet" type="text/css" />

<body>
    
    <form id="form1" runat="server">
    <div>
    
       
<uc2:menuCtrl ID="menuCtrl1" runat="server" />
  <asp:Label ID="Label1" runat="server" Text="Lista Roles" style="font-size: large; color: #960818"></asp:Label>
 
          
           
           <table cellspacing="1" class="style1">
               <tr>
                   <td Width="70%">
                       <table cellspacing="1">
                           <tr>
                               <td>
                                   &nbsp;</td>
                           </tr>
                       </table>
                   </td>
                   <td>
                       <table>
                           <tr>
                               <td>
                                   <asp:Button ID="refreshButton" runat="server" Font-Size="X-Small" 
                                       Text="Actualizar"  CssClass="ms-crm-List-Header"  />
                               </td>
                               <%--onclick="actualizarButton_Click"--%>
                               <td>
                               </td>
                               <td>
                                   <asp:Button ID="nuevoButton" onclick="nuevoButton_Click" runat="server" Font-Size="X-Small" CssClass="ms-crm-List-Header"  Text="Nuevo" />
                               </td>
                               <%--onclick="nuevoButton_Click" --%>
                           </tr>
                       </table>
                       </td>
               </tr>
           </table>
           <hr/>
  
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
       
        <asp:UpdatePanel runat="server" ID="rolupdate" >
  <ContentTemplate>
  <uc3:RoleListGridGrid ID="RoleListGridGrid1" runat="server"  DataSourceID="RolListODS" />

    <asp:ObjectDataSource ID="RolListODS" runat="server" 
    EnablePaging="True" 
    SelectCountMethod="Count" 
    SelectMethod="getRolList" 
    SortParameterName="sortExpression"
    TypeName="BOL.RolBL">
        <SelectParameters>
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
            <asp:Parameter Name="sortExpression" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
                 </ContentTemplate>
               </asp:UpdatePanel>
  
    </div>
    </form>
</body>
</html>
